/**
 * Created by jt on 2017/5/8.
 */
import "./index.less";
import "../../../unit/common/js/bootstrap_js/select2.min.js";
import "../../../unit/common/js/bootstrap_js/jquery.dataTables.js";
import "../../../unit/common/js/bootstrap_js/form-samples.js";
import "../../../unit/common/js/bootstrap_js/table-editable.js";

jQuery(function () {
    var token = sessionStorage.getItem('token');
    if (token == null || token =='') {
        location.href = HOST_FRT+'/expert_grid/login.html';
    }
    App.init();

    jQuery.ajax({
        url: HOST_ADDR+'/cpmp/bidProjOnMngForExpt/showExptInf',
        type: 'get',
        // data: JSON.stringify(data),
        dataType: 'json',
        contentType:"application/json",
        headers: {
            'access_token': token,'login_type':'ums'
        },
        success: function(resp){
            if (!resp.success) {
                console.log(resp.msgCod+' '+resp.msgInf);
                return;
            }
            console.log(resp);

            jQuery('.exptNam').text(resp.data.exptNam);
            jQuery('.exptId').text(resp.data.exptId);
            jQuery('.mobNbr').text(resp.data.mobNbr);
            jQuery('.exptTtl').text(resp.data.exptTtl);

        },
        error:function(err){
            alert('系统错误！');
        }
    });
});
